About Simon
version: 1.0.0
last modified: August 8, 2000
A simple game to demonstrate Cocoa development in project builder.  For those who have never played simon it is a game that involves the computer flashing a sequence of buttons and then you repeat the sequence.  Each time you successfully repeat the sequence a random selection is added onto the end.  The game continues until the player fails to repeat the sequence.
Building the Code
The code was built using a standard Cocoa Application project in project builder.
Restrictions
Currently the sequence is stored in a fixed length array so if the player manages to play long enough for the sequence to extend beyond the end of that array the program will behave abnormally. However this situation is very unlikely in normal game play and will probably never arise.  If in fact you are some kind of super-human memory master with a lot of time on your hands then the MAX_SEQUENCE_LENGTH can easily be changed in the code to whatever length you like.  Currently it should be set at 100.
Other Code Notes
none.
Known Bugs
While the computer is playing a sequence interface will not respond to user interaction.
Possible Future Enhancements
Change the fixed array to a linked list or some other dynamic data structure to remove the sequence length limitation.
Add threading to allow Start/Stop to work while the computer is playing a sequence.
Other Sources of Reference
Objective-C
http://developer.apple.com/techpubs/macosx/System/Documentation/Developer/Cocoa/ObjectiveC/ObjC.pdf
AppKit
http://developer.apple.com/techpubs/macosx/System/Library/Frameworks/AppKit.framework/Versions/C/Resources/English.lproj/Documentation/Reference/ObjC_classic/AppKitTOC.html
Version History
6/28/00-Created
Credits
Karl Groethe
Apple Developer Technical Support